<?php 

class LsWebUser
extends CWebUser
{
	
	public function init(){
		parent::init();
		if($oUser = Yii::E()->User_GetUserCurrent()){
			$oUserIdentify = new CUserIdentity($oUser->getId(), '');
			$this->login($oUserIdentify);
		}else{
			$this->logout(false);
		}
	}
	
}

?>